package zouhaotian.rbac.service;

import zouhaotian.rbac.domain.dto.BaseDto;

import zouhaotian.rbac.domain.entity.BaseEntity;

import zouhaotian.rbac.domain.vo.Result;

/**
 * 业务层-通用接口
 *
 * @auther 邹昊天
 * @since 2025/6/21 14:03
 */
public interface IBaseService<Entity extends BaseEntity,Dto extends BaseDto>{

    Result list();

    Result create(Dto dto);

    Result update(Dto dto, int id);

    boolean existsById(int id);

    Entity findById(int id);
}
